| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

Theme.h
1 // Theme.h
3 //
5
6 namespace nkWinUi
7 {
11 struct ThemeColors
12 {
16 Color _primaryColor ;
20 Color _secondaryColor ;
24 Color _ternaryColor ;
25
29 Color _hoverColor ;
30
34 Color _textColor ;
35 } ;
36 }
37
38 namespace nkWinUi
39 {
43 class Theme final
44 {
45 public :
46
50 Theme () noexcept ;
51
52 // Getters
56 nkMemory::StringView getName () const ;
60 const ThemeColors& getColors () const ;
64 ThemeColors& getColors () ;
65
66 // Setters
72 void setName (nkMemory::StringView name) ;
73
74 public :
75
76 // Statics
84 static nkMemory::UniquePtr<Theme> create (System* system = nullptr) ;
85 } ;
86 }
nkWinUi::Theme::Theme
Theme() noexcept
nkWinUi::ThemeColors::_textColor
Color _textColor
Definition: Theme.h:34
nkWinUi::ThemeColors::_hoverColor
Color _hoverColor
Definition: Theme.h:29
nkWinUi::Theme::getColors
const ThemeColors & getColors() const
nkWinUi::Theme::setName
void setName(nkMemory::StringView name)
nkWinUi::Theme::create
static nkMemory::UniquePtr< Theme > create(System *system=nullptr)
nkWinUi::ThemeColors::_ternaryColor
Color _ternaryColor
Definition: Theme.h:24
nkWinUi::System
The main system of the component.
Definition: System.h:18
nkWinUi::Color
Represents a color, with 4 channels.
Definition: Color.h:12
nkWinUi::Theme
A theme used to style the windows in the component.
Definition: Theme.h:44
nkWinUi::Theme::getName
nkMemory::StringView getName() const
nkWinUi::ThemeColors::_primaryColor
Color _primaryColor
Definition: Theme.h:16
nkWinUi::ThemeColors::_secondaryColor
Color _secondaryColor
Definition: Theme.h:20
nkWinUi
Encompasses all API of component NilkinsWinUi.
Definition: Clipboard.h:7
nkWinUi::ThemeColors
Information about all the colors a theme will need.
Definition: Theme.h:12
nkMemory
Encompasses all API of component NilkinsMemory.
Definition: Allocator.h:7